package com.shigui.news.model;

import java.sql.Timestamp;

import org.codehaus.jackson.annotate.JsonBackReference;

public class Comment {
	
	private Integer id;
	private String content;
	private Timestamp date;
	private Integer userId;
	private Integer newsId;
	private String revert;
	
	private News news;
	private User user;
	
	
	public News getNews() {
		return news;
	}
	
	@JsonBackReference
	public void setNews(News news) {
		this.news = news;
	}
	public User getUser() {
		return user;
	}
	@JsonBackReference
	public void setUser(User user) {
		this.user = user;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id =id;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Timestamp getDate() {
		return date;
	}
	public void setDate(Timestamp date) {
		this.date = date;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getNewsId() {
		return newsId;
	}
	public void setNewsId(Integer newsId) {
		this.newsId = newsId;
	}
	public String getRevert() {
		return revert;
	}
	public void setRevert(String revert) {
		this.revert = revert;
	}
	
	
	
	

}
